project(co)

set(CMAKE_CXX_STANDARD 20)

set(LOCAL_DIR .)

set(FILE_LIST
    Channel.hpp
    Channel.cpp
    Scheduler.hpp
    Scheduler.cpp
    Thread.hpp
    Thread.cpp
    Fiber.hpp
    Fiber.cpp
    TimerManager.hpp
    TimerManager.cpp
    IOManager.hpp
    IOManager.cpp
    Factor.hpp
    FdManager.hpp
    FdManager.cpp
    ConditionVar.hpp
    ConditionVar.cpp
    Hook.hpp
    Hook.cpp
)

add_library(co ${FILE_LIST})
target_link_libraries(co base)